package com.hspedu.exception_;

/**
 * @Author Stringzhua
 * @Date 2024/3/7 21:31
 * description:
 */
public class ArrayIndexOutOfBoundsException_ {
    public static void main(String[] args) {
        int[] arr={1,2,4};
        for (int i = 0; i <= arr.length; i++) {//i <= arr.length  arr[3]不存在
            //即数组下标越界
            System.out.println(arr[i]);
        }
    }
}
